<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>主页 | 短信平台</title>
<jsp:include page="/WEB-INF/jsp/common/commonlist.jsp"></jsp:include>
<style>
	#userTable tr{
		background-color:white;
	}
	#userTable td{
		background-color:white;
	}
	
	td.td_title{
		width:100px;
	}
</style>
</head>
<body onload="bodyLoad()">
<div id="body-wrapper">
  <!-- Wrapper for the radial gradient background -->
  <div id="sidebar">
    <div id="sidebar-wrapper">
      <!-- Sidebar with logo and menu -->
      <h1 id="sidebar-title"><a href="#">短信平台</a></h1> 
      <!-- Logo (221px wide) -->
      
      <!-- Sidebar Profile links -->
            <!--  页面左上角的部分 -->
     <%@include file="/WEB-INF/jsp/common/leftTop.jsp" %>
     <!-- 页面左侧菜单部分 -->
     <%@include file="/WEB-INF/jsp/common/menu.jsp" %>
      
    </div>
  </div>
  <!-- End #sidebar -->
  <div id="main-content">
    <!-- Main Content Section with everything -->
    <noscript>
    <!-- Show a notification if the user has disabled javascript -->
    <div class="notification error png_bg">
      <div> Javascript is disabled or is not supported by your browser. Please <a href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a> your browser or <a href="http://www.google.com/support/bin/answer.py?answer=23852" title="Enable Javascript in your browser">enable</a> Javascript to navigate the interface properly.
        Download From <a href="http://www.exet.tk">exet.tk</a></div>
    </div>
    </noscript>
    <!-- Page Head -->
   <%@ include file="/WEB-INF/jsp/common/top.jsp" %>
    <!-- End .shortcut-buttons-set -->
    <div class="clear"></div>
    <!-- End .clear -->
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>编辑通道</h3>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        <div class="tab-content default-tab" id="tab2">
          <form action="updChannel.do" method="post">
            <table id="userTable">
            <tr>           
              <td class="td_title"><label style="display: inline; width: 90px;">通道名称：</label></td>
              <td><input class="text-input small-input" type="text" id="small-input" name="tdmc" value="${mpChannel.tdmc}"/></td>             
            </tr>
            <tr>
              <td><label style="display: inline; width: 90px;">通道类型：</label></td>
              <td>
              <c:if test="${mpChannel.tdlb=='A类'}">
	              <input type="radio" name="tdlb" value="A类" checked="checked" />A类&nbsp;&nbsp;
	              <input type="radio" name="tdlb" value="B类"/>B类&nbsp;&nbsp;
	              <input type="radio" name="tdlb" value="C类"/>C类
              </c:if>
              <c:if test="${mpChannel.tdlb=='B类'}">
	              <input type="radio" name="tdlb" value="A类"/>A类&nbsp;&nbsp;
	              <input type="radio" name="tdlb" value="B类" checked="checked" />B类&nbsp;&nbsp;
	              <input type="radio" name="tdlb" value="C类"/>C类
              </c:if>
              <c:if test="${mpChannel.tdlb=='C类'}">
	              <input type="radio" name="tdlb" value="A类"/>A类&nbsp;&nbsp;
	              <input type="radio" name="tdlb" value="B类"/>B类&nbsp;&nbsp;
	              <input type="radio" name="tdlb" value="C类" checked="checked" />C类
              </c:if>
              </td>
            </tr>
            <tr>
              <td><label style="display: inline; width: 90px;">通道属性：</label></td>
              <td>
              <c:if test="${mpChannel.tdsx=='电信'}">
	              <input type="radio" name="tdsx"  value="电信" checked="checked" />电信&nbsp;&nbsp;
	              <input type="radio" name="tdsx" value="移动"/>移动&nbsp;&nbsp;
	              <input type="radio" name="tdsx" value="联通"/>联通&nbsp;&nbsp;
	              <input type="radio" name="tdsx" value="全网"/>全网
	          </c:if>
	          <c:if test="${mpChannel.tdsx=='移动'}">
	              <input type="radio" name="tdsx"  value="电信" />电信&nbsp;&nbsp;
	              <input type="radio" name="tdsx" value="移动" checked="checked" />移动&nbsp;&nbsp;
	              <input type="radio" name="tdsx" value="联通"/>联通&nbsp;&nbsp;
	              <input type="radio" name="tdsx" value="全网"/>全网
	          </c:if>
	          <c:if test="${mpChannel.tdsx=='联通'}">
	              <input type="radio" name="tdsx"  value="电信" />电信&nbsp;&nbsp;
	              <input type="radio" name="tdsx" value="移动"/>移动&nbsp;&nbsp;
	              <input type="radio" name="tdsx" value="联通" checked="checked" />联通&nbsp;&nbsp;
	              <input type="radio" name="tdsx" value="全网"/>全网
	          </c:if>
	          <c:if test="${mpChannel.tdsx=='全网'}">
	              <input type="radio" name="tdsx"  value="电信" />电信&nbsp;&nbsp;
	              <input type="radio" name="tdsx" value="移动"/>移动&nbsp;&nbsp;
	              <input type="radio" name="tdsx" value="联通"/>联通&nbsp;&nbsp;
	              <input type="radio" name="tdsx" value="全网" checked="checked" />全网
	          </c:if>
              </td>        
            </tr>
            <tr>
              <td><label style="display: inline; width: 90px;">提交方式：</label></td>
              <td>
              <c:if test="${mpChannel.tjfs=='GET方式'}">
	              <input type="radio" name="tjfs" value="GET方式" checked="checked" />GET方式&nbsp;&nbsp;
	              <input type="radio" name="tjfs" value="POST方式"/>POST方式
	          </c:if>
	          <c:if test="${mpChannel.tjfs=='POST方式'}">
	              <input type="radio" name="tjfs" value="GET方式" />GET方式&nbsp;&nbsp;
	              <input type="radio" name="tjfs" value="POST方式" checked="checked" />POST方式
	          </c:if>
              </td>               
            </tr>
            <tr>
             <td> <label style="display: inline; width: 90px;">短信最长字数：</label></td>
              <td><input class="text-input small-input" type="text" id="dxzczs" name="dxzczs" value="${mpChannel.dxzczs}"/></td>              
             </tr>
            <tr>
            <td><label style="display: inline; width: 90px;">单次提交条数：</label></td>
              <td><input class="text-input small-input" type="text" id="dctjts" name="dctjts" value="${mpChannel.dctjts}"/></td>              
              </tr>
            <tr>
            <td> <label style="display: inline; width: 90px;">发送短信地址：</label></td>
             <td><input class="text-input small-input" type="text" id="fsdxdz" name="fsdxdz" value="${mpChannel.fsdxdz}"/></td>            
              </tr>
            <tr>
            	<td><label style="display: inline; width: 90px;">短信参数列表：</label></td>
              <td><input class="text-input medium-input datepicker" type="text" id="dxcslb" name="dxcslb" value="${mpChannel.dxcslb}"/></td>
			</tr>
            <tr>
            <td style="vertical-align: middle;">
              <label>通道备注：</label>
             </td>
             <td>
              <textarea class="text-input textarea wysiwyg" id="tdbz" name="tdbz" cols="79" rows="15">${mpChannel.tdbz}</textarea>
              </td>
            </tr>
            <tr><td colspan="2" style="text-align: center;">
              <input class="button" type="submit" value="更  新" />&nbsp;&nbsp;<input class="button" type="reset" value="重  置" />
              <input type="hidden" name="info" id="info" value="${info}">
              <input type="hidden" name="tdId" id="tdId" value="${mpChannel.tdId}">
			</td></tr>
           </table>
            <div class="clear"></div>
            <!-- End .clear -->
          </form>
        </div>
        <!-- End #tab2 -->
      </div>
      <!-- End .content-box-content -->
    </div>
    <!-- End .content-box -->
    <div class="clear"></div>
    <%@ include file="/WEB-INF/jsp/common/copyright.jsp" %>
  </div>
  <!-- End #main-content -->
</div>
</body>
<script type="text/javascript">
	var info = document.getElementById("info").value;
	if(info==""||info==null){
		//...
	}else{
		alert(info);
	}
	function bodyLoad(){
		activeMenuItem("channelManage","channelList");
	}
</script>
</html>